Skip to content

Feat/external orders#228

Open
0xNazarii wants to merge 16 commits intofeat/deltaSlippageParamfrom
feat/externalOrders
Open

Feat/external orders#228
0xNazarii wants to merge 16 commits intofeat/deltaSlippageParamfrom
feat/externalOrders

Conversation

@0xNazarii
Copy link

@0xNazarii 0xNazarii commented Mar 11, 2026

Note

Medium Risk
Adds a new External Delta order flow (new EIP-712 typed data, API posting, and pre-signing) and broadens DeltaOrderFromAPI’s order shape, which can impact existing integrations that assume only auction orders or bridge fields.

Overview
Adds first-class support for External Delta orders: new SDK methods to buildExternalDeltaOrder, signExternalDeltaOrder, postExternalDeltaOrder, and preSignExternalDeltaOrder, plus a bundled submitExternalDeltaOrder flow.

Refactors shared Delta order logic by extracting partner/fee encoding and slippage/amount resolution into helpers/misc.ts, introduces ExternalDeltaOrder + shared AmountsWithSlippage/SwapSideUnion types, and updates DeltaOrderFromAPI/example status polling to handle both auction and external order shapes.

Updates exports/handler composition (constructAllDeltaOrdersHandlers, src/index.ts, partial SDK typing) and adds examples demonstrating external Aave handler orders on Base.

Written by Cursor Bugbot for commit ef7d7b8. This will update automatically on new commits. Configure here.

@github-actions
Copy link

github-actions bot commented Mar 11, 2026

size-limit report 📦

Path Size
dist/sdk.cjs.production.min.js 16.91 KB (+2.61% 🔺)
dist/sdk.esm.js 16.86 KB (+2.47% 🔺)

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant